// vbclient.cpp
#import "c:\Inside COM+ Base Services\Language Integration\VBComponent.dll" no_namespace
#import "c:\Inside COM+ Base Services\Language Integration\component\debug\component.dll" no_namespace
#include <iostream.h>

void main()
{
	int result;

	CoInitialize(NULL);
	ISumPtr myRef(__uuidof(VBInsideCOM));
	result = myRef->Sum(5, 13);
	cout << "5 + 13 = " << result << endl;
	myRef = NULL;
	CoUninitialize();
}